<?php
class CRBTCaller {
	public $evtObj;
	public $evtName;
	public $funcName;
	
	public $client;
	public $soapStruct;
	public $soapParam;	
	
	public function exec($eventObj, $eventName, $funcName, $wsdl, $nameSpace)
	{
		$this->evtObj = $eventObj;
		$this->evtName = $eventName;
		$this->funcName = $funcName;
		
		$this->client = new SoapClient(null, array('location' => $wsdl, 'uri' => 'iring'));	
		$this->soapStruct = new SoapVar($this->evtObj, SOAP_ENC_OBJECT, $this->evtName, $nameSpace);
		$this->soapParam = new SoapParam($this->soapStruct, 'xxx');
		return $this->client->__soapCall($this->funcName, array('xxx'=>$this->soapParam));
	}
}
?>